package org.hackystat.devcathlon.ui.page.scoreboard;

import java.io.Serializable;

/**
 * Provide Session state for the Scoreboard area of the Devcathlon application. 
 * An instance of this is automatically created in DevcathlonSession. 
 * Access using DevcathlonSession.get().getScoreboardSession().
 * 
 * @author Philip Johnson
 */
public class ScoreboardSession implements Serializable {
  
  /** Support serialization. */
  private static final long serialVersionUID = 1L;
  
  /** For scoreboard data storage. */
  private ScoreboardModel scoreboardModel = new ScoreboardModel();
  
  //private ScoreBoard scoreBoard = new ScoreBoard();
  
  /**
   * Support session state for the Scoreboard page and subpages. 
   */
  public ScoreboardSession() {
    //Nothing needed yet. 
  }
  
  /**
   * Return an instance of the Scoreboard model.
   * 
   * @return A scoreboard model.
   */
  public ScoreboardModel getScoreboardModel() {
    return this.scoreboardModel;
  }

}
